import Vue from 'vue'
import 'normalize.css/normalize.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import '@/styles/index.scss' // global css

import App from './App'

import store from './store'
import './permission'
import router from './router'

import '@/icons' // icon
// 引入echarts
import echarts from './echarts'

import JsonExcel from 'vue-json-excel'
import UploadImg from '@/components/uploadImg'
Vue.component('downloadExcel', JsonExcel)
Vue.component(UploadImg.name, UploadImg)
// 挂载到vue实例中
Vue.prototype.$echarts = echarts

// 调用的时候就是 ：  this.$echarts
Vue.use(ElementUI)

Vue.config.productionTip = false

// vue实例化
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
